import logging


def get_logger(name):
    logger = logging.getLogger(name)
    if not logger.hasHandlers():
        logger.setLevel(logging.INFO)
        hdlr = logging.StreamHandler()
        hdlr.setFormatter(logging.Formatter('[%(levelname)s] [%(asctime)s] [%(name)s] %(message)s'))
        logger.addHandler(hdlr)
    return logger

logger = get_logger('nvrpro')
